<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Users</title>
</head>
<body>
	<h1>Current users</h1>
	<table border=1>
		<tr>
			<td><b>name</b></td>
			<td><b>url</b></td>
			<td></td>
		</tr>
		<c:forEach var="user" items="${users}">

			<tr>
				<td>${user.name}</td>
				<td>${user.atomFeed}</td>
				<td><a href="feed/${user.id}">feed</a></td>
			</tr>
		</c:forEach>
	</table>

	<h1>New user</h1>
	<form:form action="newuser" commandName="addUserForm">
		<form:input path="email" /><br/>
		<input type="submit" />
	</form:form>
</body>

</body>
</html>